home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / alib / csup / rexx_support / errors.i < prev    next >
Encoding:
Text File  |  1995-12-24  |  3.5 KB  |  74 lines

  1.          IFND     REXX_ERRORS_I
  2. REXX_ERRORS_I SET      1
  3. **
  4. **    $Id: errors.i,v 30.0 1994/06/10 18:10:49 dice Exp $
  5. **
  6. **    Definitions for ARexx error codes
  7. **
  8. **    (C) Copyright 1986,1987,1988,1989,1990 William S. Hawes.
  9. **        All Rights Reserved
  10. **
  11.  
  12. ERRC_MSG    EQU   0                 ; error code offset
  13. ERR10_001   EQU   (ERRC_MSG+1)      ; program not found
  14. ERR10_002   EQU   (ERRC_MSG+2)      ; execution halted
  15. ERR10_003   EQU   (ERRC_MSG+3)      ; no memory available
  16.                                     ; unassigned
  17. ERR10_005   EQU   (ERRC_MSG+5)      ; unmatched quote
  18. ERR10_006   EQU   (ERRC_MSG+6)      ; unterminated comment
  19.                                     ; unassigned
  20. ERR10_008   EQU   (ERRC_MSG+8)      ; unrecognized token
  21. ERR10_009   EQU   (ERRC_MSG+9)      ; symbol or string too long
  22.  
  23. ERR10_010   EQU   (ERRC_MSG+10)     ; invalid message packet
  24. ERR10_011   EQU   (ERRC_MSG+11)     ; command string error
  25. ERR10_012   EQU   (ERRC_MSG+12)     ; error return from function
  26. ERR10_013   EQU   (ERRC_MSG+13)     ; host environment not found
  27. ERR10_014   EQU   (ERRC_MSG+14)     ; required library not available
  28. ERR10_015   EQU   (ERRC_MSG+15)     ; function not found
  29. ERR10_016   EQU   (ERRC_MSG+16)     ; function did not return value
  30. ERR10_017   EQU   (ERRC_MSG+17)     ; wrong number of arguments
  31. ERR10_018   EQU   (ERRC_MSG+18)     ; invalid argument to function
  32. ERR10_019   EQU   (ERRC_MSG+19)     ; invalid PROCEDURE instruction
  33.  
  34. ERR10_020   EQU   (ERRC_MSG+20)     ; unexpected THEN/ELSE
  35. ERR10_021   EQU   (ERRC_MSG+21)     ; unexpected WHEN/OTHERWISE
  36. ERR10_022   EQU   (ERRC_MSG+22)     ; unexpected BREAK, LEAVE or ITERATE
  37. ERR10_023   EQU   (ERRC_MSG+23)     ; invalid statement in SELECT
  38. ERR10_024   EQU   (ERRC_MSG+24)     ; missing or multiple THEN clauses
  39. ERR10_025   EQU   (ERRC_MSG+25)     ; missing OTHERWISE
  40. ERR10_026   EQU   (ERRC_MSG+26)     ; missing or unexpected END
  41. ERR10_027   EQU   (ERRC_MSG+27)     ; symbol mismatch on END/LEAVE/ITERATE
  42. ERR10_028   EQU   (ERRC_MSG+28)     ; invalid 'DO' syntax
  43. ERR10_029   EQU   (ERRC_MSG+29)     ; incomplete DO/IF/SELECT
  44.  
  45. ERR10_030   EQU   (ERRC_MSG+30)     ; label not found
  46. ERR10_031   EQU   (ERRC_MSG+31)     ; symbol expected
  47. ERR10_032   EQU   (ERRC_MSG+32)     ; string or symbol expected
  48. ERR10_033   EQU   (ERRC_MSG+33)     ; invalid sub-keyword
  49. ERR10_034   EQU   (ERRC_MSG+34)     ; required keyword missing
  50. ERR10_035   EQU   (ERRC_MSG+35)     ; extraneous characters in clause
  51. ERR10_036   EQU   (ERRC_MSG+36)     ; sub-keyword conflict
  52. ERR10_037   EQU   (ERRC_MSG+37)     ; invalid template
  53.                                     ; unassigned
  54. ERR10_039   EQU   (ERRC_MSG+39)     ; uninitialized variable
  55.  
  56. ERR10_040   EQU   (ERRC_MSG+40)     ; invalid variable name
  57. ERR10_041   EQU   (ERRC_MSG+41)     ; invalid expression
  58. ERR10_042   EQU   (ERRC_MSG+42)     ; unbalanced parentheses
  59. ERR10_043   EQU   (ERRC_MSG+43)     ; nesting level exceeded
  60. ERR10_044   EQU   (ERRC_MSG+44)     ; invalid expression result
  61. ERR10_045   EQU   (ERRC_MSG+45)     ; expression required
  62. ERR10_046   EQU   (ERRC_MSG+46)     ; boolean value not 0 or 1
  63. ERR10_047   EQU   (ERRC_MSG+47)     ; arithmetic conversion error
  64. ERR10_048   EQU   (ERRC_MSG+48)     ; invalid operand
  65.  
  66. * Return Codes for general use ...
  67. RC_FAIL     EQU   -1                ; something's wrong
  68. RC_OK       EQU   0                 ; success
  69. RC_WARN     EQU   5                 ; A warning only
  70. RC_ERROR    EQU   10                ; Something wrong
  71. RC_FATAL    EQU   20                ; Complete or severe failure
  72.  
  73.          ENDC
  74.